﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfGoodsSearch.aspx.cs" Inherits="msBsc.WebUi.wfGoodsSearch" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server">
    <title>优速购商品查询</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" /> 

    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/schList.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js" type="text/javascript"></script>
    <!--head fix rgn--> 
    <script type="text/javascript">
        $(window).load(function () {
            var timertm;
            $("#J_FPrice .fP-box input").live("focus", function () {
                timertm && clearTimeout(timertm); $(".fP-expand").show();
            }).live("blur", function () {
                timertm = setTimeout(function () { $(".fP-expand").hide(); }, 500);
            });
            $("#J_FPCancel").click(function () {
                $("#J_FPrice .fP-box input").val('');
                doToPageNm();
            });
            $("#J_FPEnter").click(function () {
                doToPageNm();
            });


            $("#J_Filter .fSort").live("click", function () {
                $("#J_Filter .fSort-cur").removeClass("fSort-cur"); $(this).addClass("fSort-cur");
                //                debugger;
                //                if ($(this).hasClass("fSort-cur")) {
                //                    if ($(this).find(".f-ico-triangle-mt").length <= 0) {
                //                        $(this).removeClass("fSort-cur");
                //                    }
                //                } else {
                //                    $("#J_Filter .fSort-cur").removeClass("fSort-cur");
                //                    $(this).addClass("fSort-cur");
                //                    $("#J_Filter .f-ico-triangle-mt").removeClass("f-ico-triangle-mt-slctd");
                //                    $("#J_Filter .f-ico-triangle-mb").removeClass("f-ico-triangle-mb-slctd");
                //                }
                //                if ($(this).find(".f-ico-triangle-mt").length > 0) {
                //                    if ($(this).find(".f-ico-triangle-mt").hasClass("f-ico-triangle-mt-slctd") > 0) {
                //                        $(this).find(".f-ico-triangle-mt").removeClass("f-ico-triangle-mt-slctd");
                //                        $(this).find(".f-ico-triangle-mb").addClass("f-ico-triangle-mb-slctd");
                //                        $(this).attr("sort-upd", "ASC");
                //                    } else {
                //                        $(this).find(".f-ico-triangle-mt").addClass("f-ico-triangle-mt-slctd");
                //                        $(this).find(".f-ico-triangle-mb").removeClass("f-ico-triangle-mb-slctd");
                //                        $(this).attr("sort-upd", "DESC");
                //                    }
                //                }
                doToPageNm();
            });

            jQuery.ploadFile("prbar");
        });
        function doBoundGoodsList(_data, _shopurl) {
            _shopurl = _shopurl || "/Template/SysGoodsSearchList.html";
            jQuery.loadHtml(_shopurl).done(function (_rethtml) {
                var tpl = HtmlUtil.htmlDecode(_rethtml);
                laytpl(tpl).render(_data, function (render) {
                    $("#content_goods_list").html(render);
                });
            });
            $("#datacurrpage").val(_data.page);
            createPaging('J_trade_pagenation', _data.page, _data.total, function (_topagenum) { doToPageNm(_topagenum); });
        };
        function doBoundTopForm(_data, _shopurl) {
            _shopurl = _shopurl || "/Template/SysGoodsSearchForm.html";
            jQuery.loadHtml(_shopurl).done(function (_rethtml) {
                var tpl = HtmlUtil.htmlDecode(_rethtml);
                laytpl(tpl).render(_data, function (render) {
                    $("#content_goods_form").html(render);
                });
            });
        }; 
        function doToPageNm(_pNum) {
            var sortt = "";
            if ($("#J_Filter .fSort-cur").length > 0) {
                sortt =$(".fSort-cur").attr("sort-data") + " " + $(".fSort-cur").attr("sort-upd");
            }
            window.location.href = '/c_GoodsSearch.htm?' + $("#txtQuery").val()
            + "&page=" + (_pNum || $("#datacurrpage").val())
            + "&p1=" + $("#start_price").val()
            + "&p2=" + $("#end_price").val()
            + "&sort=" + sortt;
//            var _jsParam = new jsonRow();
//            _jsParam.AddCell("ACTION", "doToPageNum");
//            _jsParam.AddCell("F_QUERY", $("#txtQuery").val());
//            _jsParam.AddCell("start_price", $("#start_price").val());
//            _jsParam.AddCell("end_price", $("#end_price").val()); 
//            _jsParam.AddCell("NEW_PAGE_NUM", _pNum || $("#datacurrpage").val());
//            _jsParam.AddCell("PAGE_ROW_COUNT", "20");
//            ajaxComm(_jsParam);
        };

    </script>
</head>
<body> 
    <input type="hidden" id="sort" value="">
    <input type="hidden" id="datacurrpage" value="">
    <input type="hidden" id="txtQuery" value="">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml("")%> 
        
        <!--内容自定义-->
        <div style="">
        <div id="content_goods_form"> 
        </div>
<div style="width:1190px; margin:auto;">
<div class="filter clearfix" id="J_Filter" >
<%=GetSorthtml()%>
  <%--  <a class="fSort" sort-data="MONTHLY_VOLUME " sort-upd="ASC" href="javascript:void(0);return false;" title="点击后按月销量从高到低" >销量<i class="f-ico-arrow-d"></i></a> 
    <a class="fSort" href="javascript:void(0);return false;" sort-data="GOODS_STRIKE_PRICE " sort-upd="DESC" title="点击后按价格从低到高" >价格<i class="f-ico-triangle-mt"></i><i class="f-ico-triangle-mb f-ico-triangle-mb-slctd"></i></a> --%>
<%--
    <div class="fArea fDestArea" id="J_FDestArea">
        <s class="fA-label">发货地：</s> <b class="fA-text">市辖区 </b><i class="f-ico-triangle-rb">
        </i>
        <div class="fA-list">
            <div class="fAl-hd clearfix">
                <span>选择发货城市</span>
            </div>
            <ul class="fAl-loc" >
                <li><a href="" code="110000">北京</a></li>
                <li><a href="" code="120000">天津</a></li>
                <li><a href="" code="310000">上海</a></li>
                <li><a href="" code="500000">重庆</a></li>
                <li class="fAll-cities"></li>
            </ul>
            <ul class="fAl-loc" data-atp="2,{text},,,spu-toloc,20,toloc,">
                <li><a href="" code="130000">河北</a></li>
                <li><a href="" code="140000">山西</a></li>
                <li><a href="" code="150000">内蒙古</a></li>
                <li><a href="" code="210000">辽宁</a></li>
                <li><a href="" code="220000">吉林</a></li>
                <li><a href="" code="230000">黑龙江</a></li>
                <li class="fAll-cities"></li>
                <li><a href="" code="320000">江苏</a></li>
                <li><a href="" code="330000">浙江</a></li>
                <li><a href="" code="340000">安徽</a></li>
                <li><a href="" code="350000">福建</a></li>
                <li><a href="" code="360000">江西</a></li>
                <li><a href="" code="370000">山东</a></li>
                <li class="fAll-cities"></li>
                <li><a href="" code="410000">河南</a></li>
                <li><a href="" code="420000">湖北</a></li>
                <li><a href="" code="430000">湖南</a></li>
                <li><a href="" code="440000">广东</a></li>
                <li><a href="" code="450000">广西</a></li>
                <li><a href="" code="460000">海南</a></li>
                <li class="fAll-cities"></li>
                <li><a href="" code="510000">四川</a></li>
                <li><a href="" code="520000">贵州</a></li>
                <li><a href="" code="530000">云南</a></li>
                <li><a href="" code="540000">西藏</a></li>
                <li><a href="" code="610000">陕西</a></li>
                <li><a href="" code="620000">甘肃</a></li>
                <li class="fAll-cities"></li>
                <li><a href="" code="630000">青海</a></li>
                <li><a href="" code="640000">宁夏</a></li>
                <li><a href="" code="650000">新疆</a></li>
                <li><a href="" code="710000">台湾</a></li>
                <li><a href="" code="810000">香港</a></li>
                <li><a href="" code="820000">澳门</a></li>
                <li class="fAll-cities"></li>
            </ul>
            <form id="J_DestAreaForm">
            <input type="hidden" value="500100" name="sarea_code">
            <input type="hidden" value="保温杯" name="q">
            <input type="hidden" name="cat" value="50026302">
            <input type="hidden" name="sort" value="s"><input type="hidden" name="style" value="g"><input
                type="hidden" name="from" value="mallfp..pc_1.0_hq"><input type="hidden" name="active"
                    value="1">
            <input name="shopType" type="hidden" value="any">
            </form>
        </div>
    </div>--%>
    <form id="J_FForm">
    <div class="fPrice" id="J_FPrice">
        <div class="fP-box">
            <b class="fPb-item"><i class="ui-price-plain">￥</i>
                <input type="text" id="start_price" autocomplete="off" maxlength="6" value="" class="j_FPInput">
            </b><i class="fPb-split"></i><b class="fPb-item"><i class="ui-price-plain">￥</i>
                <input type="text" id="end_price" autocomplete="off" value="" maxlength="6" class="j_FPInput">
            </b>
        </div>
        <div class="fP-expand">
            <a class="ui-btn-s" id="J_FPCancel">清空</a> <a class="ui-btn-s-primary" id="J_FPEnter">确定</a>
        </div>
    </div> 
    </form>
    <p class="ui-page-s">
<%--        <b class="ui-page-s-len">1/100</b> <b class="ui-page-s-prev" title="上一页">&lt;</b>
        <a href="?cat=50026302&amp;s=59&amp;q=%B1%A3%CE%C2%B1%AD&amp;sort=s&amp;style=g&amp;from=mallfp..pc_1.0_hq&amp;active=1&amp;spm=3.7396704.a1z5h.1.Rk3oL9&amp;type=pc#J_Filter"
            class="ui-page-s-next" atpanel="1,pagedn,,,,20,fservice," title="下一页">&gt;</a>--%>
    </p>
</div>
</div>

        <div id="content_goods_list"> 
        </div>
        <div style="width:1190px; margin:auto;" id="J_trade_pagenation"></div>
        </div>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%> 
    <!-- foot script -->
</body>
</html>

